#pragma once
#ifndef __LIT__FILE__SYSTEM__HH__
#define __LIT__FILE__SYSTEM__HH__

#include <string>
#include "LitPrerequisites.h"
#include "LitResourcesList.h"
#include <LitFilePath.h>
#include <LitStream.h>

namespace Lit
{
	class LIT_API FileSystem
	{
		ResourcesList mResources;
	public:
		static void _setApplicationPath( const std::string &str );
		static std::string applicationPath();

		static bool exists( const std::string &name );
		static bool createDirectories( const std::string &path );
		static void removeAll( const std::string &path );

		static std::string fileName( const std::string &path );
		static std::string dirName( const std::string &path );
		const ResourcesList& listResources() const;
		FilePath findResourcePath( const std::string &resource_name );
	};
};
#endif
